﻿<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <DotNetAge:CollapsablePanel ID="DraggHeaderPanel" runat="server" Width="200" Style="padding: 0.5em;
        float: left; margin: 0 10px 10px 0;" Title="Drag me with header">
        <ContentTempalte>
            <p style="margin: 10px" unselectable="on">
                I can be dragged only by my header</p>
        </ContentTempalte>
    </DotNetAge:CollapsablePanel>
    <DotNetAge:CollapsablePanel ID="DraggBodyPanel" runat="server" Width="200" Title="Drag me with body"
        Style="padding: 0.5em; float: left; margin: 0 10px 10px 0;">
        <ContentTempalte>
            <p style="margin: 10px" unselectable="on">
                I can be dragged only by my content body</p>
        </ContentTempalte>
    </DotNetAge:CollapsablePanel>
    <DotNetAge:Draggable ID="HeaderDraggable" runat="server">
        <Target TargetID="DraggHeaderPanel" />
        <DragHandler TargetID="DraggHeaderPanel>h3" />
        <DisableDraggingElements TargetID="DraggHeaderPanel>div" />
    </DotNetAge:Draggable>
    <DotNetAge:Draggable ID="ContentDraggable" runat="server">
        <Target TargetID="DraggBodyPanel" />
        <DisableDraggingElements TargetID="DraggBodyPanel>h3" />
    </DotNetAge:Draggable>
    </form>
</body>
</html>
